<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
<!--时间选择器-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/lang/cn_utf8.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-setup.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-blue.css" />
<!--colorbox-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/jquery.colorbox.js"></script>
<link href="<?php echo $this->baseUrl;?>/files/admin/js/colorbox.jquery/colorbox2.css" rel="stylesheet" type="text/css"/>
<style>
#content{ min-height:600px;_height:600px;}


.table td{ text-align:right;}
.table .textLeft{ text-align:left;}
.table .count td{ text-align:right;}
.table .count .textCenter { text-align: center;}
.table .member-data-body .textLeft{ text-align:left;}
</style>
<script language="javascript">
function selData(action,dateType,doType){
    $('#searchForm').attr('action', action);
	$('#dateType').attr('value', dateType);
	$('#doType').attr('value', doType);
    $('#searchForm').submit();
}
</script>
</head>

<body style="overflow:auto;">
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：重购查询</div>
			<div id="topOtherMenu"></div>
		</div>
		<div id="body">
			<div id="search">
				<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl();?>">
					<div id="timeRange">
					<select name="startYear">
					  <option <?php echo $this->vars['startYear'] == '2011' ? 'selected="selected"' : '';?> value="2011">2011</option>
					  <option <?php echo $this->vars['startYear'] == '2012' ? 'selected="selected"' : '';?> value="2012">2012</option>
					</select>
					年
					<select name="startMonth">
					  <option value="">X</option>
					  <?php for($i=1;$i<=12;$i++):?>
					  <option <?php echo $i == $this->vars['startMonth'] ? 'selected="selected"' : '';?> value="<?php echo $i<10 ? '0'.$i : $i;?>"><?php echo $i?></option>
					  <?php endfor;?>
					</select>
					月订单用户
					<select name="endYear">
					  <option <?php echo $this->vars['endYear'] == '2011' ? 'selected="selected"' : '';?> value="2011">2011</option>
					  <option <?php echo $this->vars['endYear'] == '2012' ? 'selected="selected"' : '';?> value="2012">2012</option>
					</select>
					年
					<select name="endMonth">
					<option value="">X</option>
					  <?php for($i=1;$i<=12;$i++):?>
					  <option <?php echo $i == $this->vars['endMonth'] ? 'selected="selected"' : '';?> value="<?php echo $i<10 ? '0'.$i : $i;?>"><?php echo $i?></option>
					  <?php endfor;?>
					</select>
					月重购占比 <br />
					<select name="syear">
					  <option <?php echo $this->vars['syear'] == '2011' ? 'selected="selected"' : '';?> value="2011">2011</option>
					  <option <?php echo $this->vars['syear'] == '2012' ? 'selected="selected"' : '';?> value="2012">2012</option>
					</select>
					年
					<select name="smonth">
					<option value="">X</option>
					  <?php for($i=1;$i<=12;$i++):?>
					  <option <?php echo $i == $this->vars['smonth'] ? 'selected="selected"' : '';?> value="<?php echo $i<10 ? '0'.$i : $i;?>"><?php echo $i?></option>
					  <?php endfor;?>
					</select>
					月激活用户
					<select name="eyear">
					  <option <?php echo $this->vars['eyear'] == '2011' ? 'selected="selected"' : '';?> value="2011">2011</option>
					  <option <?php echo $this->vars['eyear'] == '2012' ? 'selected="selected"' : '';?> value="2012">2012</option>
					</select>
					年
					<select name="emonth">
					<option value="">X</option>
					  <?php for($i=1;$i<=12;$i++):?>
					  <option <?php echo $i == $this->vars['emonth'] ? 'selected="selected"' : '';?> value="<?php echo $i<10 ? '0'.$i : $i;?>"><?php echo $i?></option>
					  <?php endfor;?>
					</select>
					月订单占比
					&nbsp;&nbsp;&nbsp;&nbsp;
					<input name="search" type="submit" id="search" value="下一步" class="button" />							
				  </div>
			  </form>
			</div>
			<div id="content">
					<table width="100%" class="table">
						<tr class="subject">                        
						  <td width="40%" class="checkBoxTd">名称</td>
						  <td width="5%" align="left">值</td>
						  <td width="24%"><span class="checkBoxTd">名称</span></td>
						  <td width="5%">值</td>
						  <td width="21%"><span class="checkBoxTd">名称</span></td>
						  <td width="5%">百分比</td>
					  </tr>
					  <?php foreach($this->res as $item):?>
					  <tr class="dataLine">
					    <td><?php echo $item['smallname'];?></td>
						    <td align="left"><?php echo $item['small'];?></td>
							<td><?php echo $item['bigname'];?></td>
						  <td><?php echo $item['big'];?></td>
							<td><?php echo $item['pername'];?></td>
						  <td><?php echo $item['per'];?></td>
					  </tr>
					  <?php endforeach;?>
				  </table>

		  </div>
		</div>
	</div>
</body>
</html>